﻿namespace QuizzMe.Helpers
{
    /// <summary>
    /// Generic singleton implementation
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class Singleton<T> where T : class, new()
    {
        protected static T Instance;
        public static T Get { get { return Instance ?? (Instance = new T()); } }
    }
}